package com.example.springinitialization.pojo.dto.userDto;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
public class UserLoginDto {
    /**
     * 用户名称
     */
    @NotNull(message = "用户账号不能为空")
    @Size(min = 6, max = 6, message = "账号为6位")
    private String userAccount;

    /**
     * 用户密码
     */
    @NotNull(message = "用户密码不能为空")
    @Size(min = 6, max = 12, message = "必须输入6-12位的用户密码")
    private String userPassword;

    @NotNull(message = "验证码不能为空")
    private String checkCode;

}
